<#if genPage>
INSERT INTO `sys_permission` (`parent_id`, `type`, `title`, `icon`, `route`, `component`, `code`, `affix`, `hidden`, `order_num`, `remark`, `status`, `create_user`, `create_time`, `update_user`, `update_time`, `del_flag`)
VALUES (<#if parentMenuId??>${parentMenuId}<#else>NULL</#if>, 'menu', '${function}', 'el-icon-fold', '/${module}/${business}', '${module}/${business}', '${business}', 0, 0, 99, NULL, '1', 1, '${date}', 1, '${date}', 0);

INSERT INTO `sys_permission` (`parent_id`, `type`, `title`, `icon`, `route`, `component`, `code`, `affix`, `hidden`, `order_num`, `remark`, `status`, `create_user`, `create_time`, `update_user`, `update_time`, `del_flag`)
VALUES
<#if genAdd>
((SELECT LAST_INSERT_ID()), 'button', '新增${function}', NULL, NULL, NULL, '${module}:${business}:add', 0, 0, 1, NULL, '1', 1, '${date}', 1, '${date}', 0),
</#if>
<#if genRemove>
((SELECT LAST_INSERT_ID()), 'button', '删除${function}', NULL, NULL, NULL, '${module}:${business}:remove', 0, 0, 1, NULL, '1', 1, '${date}', 1, '${date}', 0),
</#if>
<#if genEdit>
((SELECT LAST_INSERT_ID()), 'button', '编辑${function}', NULL, NULL, NULL, '${module}:${business}:edit', 0, 0, 1, NULL, '1', 1, '${date}', 1, '${date}', 0),
</#if>
<#if genPageTableType == '1'>
((SELECT LAST_INSERT_ID()), 'button', '${function}分页', NULL, NULL, NULL, '${module}:${business}:page', 0, 0, 1, NULL, '1', 1, '${date}', 1, '${date}', 0);
<#else>
((SELECT LAST_INSERT_ID()), 'button', '${function}列表', NULL, NULL, NULL, '${module}:${business}:list', 0, 0, 1, NULL, '1', 1, '${date}', 1, '${date}', 0);
</#if>
</#if>